package org.sith.taskrunner.api;

public class TaskRegisterResult {


    public static final String RESULT_MESSAGE = "TASK_REGISTER_RESULT";


    public enum ResultType {
        ACCEPTED, REJECTED
    }

    private boolean error;

    private String taskExecutionId;

    private Long startTaskDateInMills;

    private ResultType resultType;

    private String description;

    public String getTaskExecutionId() {
        return taskExecutionId;
    }

    public void setTaskExecutionId(String taskExecutionId) {
        this.taskExecutionId = taskExecutionId;
    }

    public Long getStartTaskDateInMills() {
        return startTaskDateInMills;
    }

    public void setStartTaskDateInMills(Long startTaskDateInMills) {
        this.startTaskDateInMills = startTaskDateInMills;
    }

    public ResultType getResultType() {
        return resultType;
    }

    public void setResultType(ResultType resultType) {
        this.resultType = resultType;
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}

